import mysql.connector
con=mysql.connector.connect(
    host="rm-bp1k95zumtf884o0spo.mysql.rds.aliyuncs.com",port="3306",
    user="user_root",password="Linyi888121dsda",
    database="demo"
)
cursor=con.cursor()
sql="SELECT empno,ename,hiredate FROM t_emp;"
cursor.execute(sql)
for one in cursor:
    print(one[0],one[1],one[2])
con.close()